#基于那个镜像
FROM java:8

VOLUME /home/vol

ARG JAR_FILE

ARG PORT

ADD  ${JAR_FILE} app.jar

RUN bash -c 'touch /app.jar'

EXPOSE ${PORT}


ENTRYPOINT ["java","-Djava.security.egd=file:/dev/ ./urandom" ,"-jar" ,"app.jar" ]